All Questions
3 questions
4votes
5answers
2kviews
Alternatives to if-else on data reading
I have some code on Arduino (so, written in C++) that receives a String through the UART terminal, reads the String, then decides what String to print back and how many things to print depending on ...
1vote
2answers
2kviews
How to return boolean result from comparison loops to maintain better readability?
Let's consider I have an std::string instance filled with textual data and an std::set<std::string> instance with keywords. I would like to know whether the text stored inside the std::string ...
3votes
2answers
2kviews
Augment a thrown exception with some contextual information
The application this question is about is basically a transpiler which contains a lot of logic. The transpiler is written in C++ (which should not be much of relevance for this question), and it ...